#include <iostream>
using namespace std;
int main(){
    char s;
    cin>>s;
    cout <<-(s-'a');
}